package models;

import java.math.BigDecimal;

import javax.persistence.*;

import play.data.validation.Constraints.Required;
import play.db.ebean.Model;

@Entity
public class OptionConfig extends Model {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	int id;
	
	@Required
	public String name;
	
	@Required
	@Column(scale=2)
	public BigDecimal prix;
	
	public String description;
	
	@ManyToOne
	@Required
	@JoinColumn(name="PRODUIT_ID")
	public Produit prod;

}
